package cn.yuanqiao.archive.shuzihua.service;


import cn.yuanqiao.archive.shuzihua.domain.YqCatalog;
import cn.yuanqiao.archive.shuzihua.domain.YqCatalogDis;
import cn.yuanqiao.archive.wenjianzhengli.utils.UploadDAO;
import com.alibaba.fastjson2.JSONObject;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 目录导入
 *
 * @ProjectName: cn.yuanqiao.archive.shuzihua.service
 * @ClassName: CatalogueImportController
 * @Author: lenovo
 * @Description: hbWang
 * @Date: 2024/1/16 10:39
 * @Version: 1.0
 **/
public interface CatalogueImportService {

    /**
     * 获取表头
     *
     * @param categoryId
     * @param type
     * @param file
     * @return
     * @throws Exception
     */
    UploadDAO getTitle(Long categoryId, Integer type, MultipartFile file) throws Exception;

    /**
     * 导入数据
     *
     * @param data
     * @param file
     * @return
     */
    int upload(JSONObject data, MultipartFile file) throws Exception;

    /**
     * 查询日志列表
     *
     * @param yqCatalog
     * @return
     */
    List<YqCatalog> logList(YqCatalog yqCatalog);

    /**
     * 根据id查询详情
     *
     * @param id
     * @return
     */
    List<YqCatalogDis> logById(String id);
}
